<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let name = 'lisi'
    let age = 12
    let hobby = ['111', '222']
    let p = { name, age, hobby }
    console.log(p);
    let person = {
      show: function () {
        console.log('show');
      },
      eat() {
        console.log('eat');
      }
    }

    let p2 = { ...p }
    console.log(p2);
  </script>
</body>

</html>